<html>
  <head>
	<title>test page</title>
	<script src="../../src/greeting.js"></script>
    <script src="../../lib/screw-unit/lib/jquery-1.2.6.js"></script>
    <script src="../../lib/screw-unit/lib/jquery.fn.js"></script>
    <script src="../../lib/screw-unit/lib/jquery.print.js"></script>
    <script src="../../lib/screw-unit/lib/screw.builder.js"></script>
    <script src="../../lib/screw-unit/lib/screw.matchers.js"></script>
    <script src="../../lib/screw-unit/lib/screw.events.js"></script>
    <script src="../../lib/screw-unit/lib/screw.behaviors.js"></script>
    <link rel="stylesheet" href="../../lib/screw-unit/lib/screw.css">
    
    <script type="text/javascript">

      Screw.Unit(function() {
				
		describe("Greeting", function() {
			
			it("should greet in English", function() {
				greeting = new Greeting();
				expect(greeting.sayHello("English", "Dude")).to(equal, "Hello Dude");
			});
			
			it("should greet in French", function() {
				translator = { translate: function() { return "Bonjour"; }};
				greeting = new Greeting(translator);
				expect(greeting.sayHello("French", "Madame")).to(equal, "Bonjour Madame");
			});
		}); 
      });

    </script>
  </head>
  <body></body>
</html>